package com.carefree.lxwy.manager.mapper;

import com.carefree.lxwy.model.dto.system.SysRoleDto;
import com.carefree.lxwy.model.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;



@Mapper
public interface SysRoleMapper {
    // 分页查询
    List<SysRole> findByPage(SysRoleDto sysRoleDto);

    // 添加角色
    void save(SysRole sysRole);

    void updateSysRole(SysRole sysRole);

    void deleteById(Long roleId);

    List<SysRole> findAllRoles();
}
